<div class="form-group" style="display: none;">
	<label class="col-sm-2 control-label">显示拼团按钮</label>
	<div class="col-sm-9 col-xs-12">
		{ifp 'groups.set.edit'}
		<label class='radio radio-inline'>
			<input type='radio' value='0' name='data[groups]' {if $data['groups']==0}checked{/if} /> 关闭
		</label>
		<label class='radio radio-inline'>
			<input type='radio' value='1' name='data[groups]'  {if $data['groups']==1}checked{/if} /> 显示
		</label>
		{else}
		<div class='form-control-static'>{if $data['groups']==1}显示{else}关闭{/if}</div>
		{/if}
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">线下核销关键词</label>
	<div class="col-sm-9 col-xs-12">
		{ifp 'groups.set.edit'}
		<input type="text" name="data2[exchangekeyword]" class="form-control" value="{$data2['exchangekeyword']}" />
		<span class='help-block'>店员线下兑换使用，使用方法: 回复关键词后系统会提示输入核销码</span>
		{else}
		<div class='form-control-static'>{if empty($data2['exchangekeyword'])}{else}{$data2['exchangekeyword']}{/if}</div>
		{/if}
	</div>
</div>
<div class='form-group-title'>关注设置</div>
<div class="form-group">
	<label class="col-sm-2 control-label">关注引导页</label>
	<div class="col-sm-9 col-xs-12">
		{ifp 'groups.set.edit'}
		<input type="text" name="data[followurl]" class="form-control" value="{$data['followurl']}" />
		<span class='help-block'>
			<p>用户未关注的引导页面，建议使用短链接：<a target="_blank" href="http://www.dwz.cn">短网址</a></p>
			<p>如果设置关注二维码则<span class="text-danger">优先弹出二维码</span></p>
		</span>
		{else}
		<input type="hidden" name="data[followurl]" value="{$data['followurl']}" />
		<div class='form-control-static'>{$data['followurl']}</div>
		{/if}
	</div>
</div>

<div class="form-group">
	<label class="col-sm-2 control-label">关注二维码</label>
	<div class="col-sm-9 col-xs-12">
		{ifp 'groups.set.edit'}
		{php echo tpl_form_field_image('data[followqrcode]', $data['followqrcode']);}
		<span class='help-block'></span>
			{else}
		<input type="hidden" name="data[followqrcode]" value="{$data['followqrcode']}" />
		 <div class='form-control-static'>{$data['followqrcode']}</div>
		{/if}
	</div>
</div>

<div class="form-group" style="display: none;">
	<label class="col-sm-2 control-label">拼团说明页面</label>
	<div class="col-sm-9 col-xs-12">
		{ifp 'groups.set.edit'}
		<input type="text" name="data[groupsurl]" class="form-control" value="{$data['groupsurl']}"  />
		{else}
		<div class='form-control-static'>{$data['groupsurl']}</div>
		{/if}
	</div>
</div>
<div class='form-group-title'>分享设置</div>
<div class="form-group">
	<label class="col-sm-2 control-label">分享标题</label>
	<div class="col-sm-9 col-xs-12">
		{ifp 'groups.set.edit'}
		<input type="text" name="data[share_title]" class="form-control" value="{$data['share_title']}" />
		<span class="help-block">不填写默认商城名称</span>
		{else}
		<input type="hidden" name="data[share_title]" value="{$data['share_title']}" />
		<div class='form-control-static'>{$data['share_title']}</div>
		{/if}

	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">分享图标</label>
	<div class="col-sm-9 col-xs-12">
		{ifp 'groups.set.edit'}

		{php echo tpl_form_field_image('data[share_icon]', $data['share_icon']);}
		<span class="help-block">不选择默认商城LOGO</span>
		{else}
		<input type="hidden" name="data[share_icon]" value="{$data['share_icon']}" />
		{if !empty($data['share_icon'])}
		<a href='{php echo tomedia($data['share_icon'])}' target='_blank'>
		<img src="{php echo tomedia($data['share_icon'])}" style='width:100px;border:1px solid #ccc;padding:1px' />
		</a>
		{/if}
		{/if}

	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">分享描述</label>
	<div class="col-sm-9 col-xs-12">
		{ifp 'groups.set.edit'}
		<textarea style="height:100px;" name="data[share_desc]" class="form-control" cols="60">{$data['share_desc']}</textarea>
		{else}
		<textarea style="height:100px;display: none" name="data[share_desc]" class="form-control" cols="60">{$data['share_desc']}</textarea>
		<div class='form-control-static'>{$data['share_desc']}</div>
		{/if}
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">分享链接</label>
	<div class="col-sm-9 col-xs-12">
		{ifp 'groups.set.edit'}

		<div class="input-group form-group" style="margin: 0;">
			<input type="text" name="data[share_url]" class="form-control" value="{$data['share_url']}" id="shareurl" />
			<span data-input="#shareurl" data-toggle="selectUrl" data-full="true" class="input-group-addon btn btn-default">选择链接</span>
		</div>

		<span class='help-block'>用户分享出去的链接，默认为首页</span>
		{else}
		<input type="hidden" name="data[share_url]" value="{$data['share_url']}" />
		<div class='form-control-static'>{$data['share_url']}</div>
		{/if}
	</div>
</div>